import http from '../utils/httpUtils'

export const addStarAPI = (params) => http.post(`/star`, params); // 用户注册

export const deleteStarAPI = (params) => http.delete(`/star`, params);

export const checkIsStarAPI = (userId, proId) => http.get(`/star/check?userId=${userId}&proId=${proId}`);

export const getStarsByUserIdAPI = (userId) => http.get(`/star/${userId}`);